 var articleArray;
 
	google.load("feeds", "1");	
	
	
        function showFeed() {
          var feed = new google.feeds.Feed("http://feeds.feedburner.com/reesenews/WDmR?format=xml");
          articleArray = new Array();
          feed.setNumEntries(6);
		  feed.load(function(result) {
                if (!result.error) {
                	var i;
                    for(i =0; i < result.feed.entries.length; i++){
                        var entry = result.feed.entries[i];
                        var articleDate = entry.publishedDate;
                        var articleTitle = entry.title;
                        var articleContent = entry.content;
                        var article = Ext.ModelMgr.create({
                            title : articleTitle,
                            pubDate : articleDate,
                            imageSrc : '',
                            content : articleContent
                        }, 'Article');
                        Reesenews.stores.articleStore.add(article);
                        article.save();   
                    }
                }
                
                else{
                	alert("error");
                }
            });  
        }
        
   google.setOnLoadCallback(showFeed);
   